<?php
/**
 * Created by PhpStorm.
 * User: smilezheng
 * Date: 2019/8/14
 * Time: 18:33
 */

namespace App\Controller;

use App\Event\AspectController;
use Symfony\Component\Routing\Annotation\Route;

/**
 * Class TestController
 * @package Controller
 * @Route("/demo/")
 */
class DemoController implements AspectController
{
    /**
     * @Route("sum", methods={"POST"})
     */
    public function sum()
    {
        return 1 + 2;
    }
}